package com.cpr.shop.code;

/**
 * @Author CPR
 * @Create 2025/1/23 22:35
 * @Version 1.0
 * @Description 失败枚举类
 */
public enum ErrorCode implements ICode{
    ;

    private final Integer code;

    private final String message;

    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
